# 日志记录
from model.model import logXYMap
from utils.ip import SearchIp

class ipDao:

    def saveLog(self,ip,url,ua):
        logmap = logXYMap()
        logmap.url = url
        logmap.ip = ip
        logmap.xymap = SearchIp().searchCity(ip)
        logmap.ua = ua
        logmap.save()



